// 导入样式组件化的第三方包
import styled from "styled-components";
import logoImg from '../../assets/images/nav-logo.png'
// Logo,NavLeft,NavRight,Button,BtnReg,BtnWrite
export const HeaderWapper = styled.div`
  display:flex;
  justify-content:space-between;
  min-width: 768px;
  max-width: 1440px;
  height: 56px;
  margin: 0 auto;
`;

export const Logo = styled.div`
  width:100px;
  height:56px;
  background-image:url(${logoImg});
  background-size: 100% 100%;
`;
export const NavLeft = styled.div`
  display:flex;
  justify-content:flex-start;
  align-items:center;
  width: 795px;
  padding-left: 150px;
`;

export const NavText = styled.div`
  height: 26px;
  line-height: 26px;
  padding:15px;
  cursor: pointer;
`;
/* 输入框样式 */
export const NavInput = styled.div`
  position: relative;
  width: 240px;
  padding-left:15px;
  margin-right:10px;
  transition:all .5s;
  input {
    padding: 0 40px 0 20px;
    width: calc(100% - 80px);
    height: 38px;
    font-size: 14px;
    border: 1px solid #eee;
    border-radius: 40px;
    background: #eee;
  }
  i {
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius:50%;
    position: absolute;
    top:50%;
    transform:translateY(-50%);
    right:30px;
    transition:all .5s;
  }
`;

export const NavRight = styled.div`
  width: 355px;

`;
export const Button = styled.div`
  display:flex;
`;
export const BtnReg = styled.div`
  width: 56px;
  height: 26px;
  line-height:26px;
  margin:9px 5px 0 15px;
  padding:6px 12px;
  border-radius:20px;
  border-color: #ec6149;
  border: 1px solid rgba(236,97,73,.7);
  text-align: center;
  color: #ea6f5a;
  background-color: transparent;
  :hover {
    color: #ec6149;
    background-color: rgba(236,97,73,.05);
  }
`;
export const BtnWrite = styled.div`
  width: 76px;
  height: 28px;
  margin: 8px 12px 0;
  padding:6px 12px;
  line-height: 28px;
  margin: 8px 12px 0;
  border-radius: 20px;
  font-size: 15px;
  color: #fff;
  background-color: #ea6f5a;
  text-align: center;
  :hover {
    color: #fff;
    background-color: #ec6149;
  }
`;

